class Author < ActiveRecord::Base
  belongs_to :nationality
  has_and_belongs_to_many :books
  validates_length_of :full_name, :within => 1..120, :on => :create, :message => "must be present"
end